﻿<navigation:Page xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="Membership.UI.PersonnelManagement.EmployeeEdit" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           Title="EmployeeEdit Page">

    <Grid x:Name="LayoutRoot" Margin="2" >
        <Grid.Background>
            <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                <GradientStop Color="#deecfd" Offset="0"/>
                <GradientStop Color="#F5F5F5" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Grid.Row="0" BorderBrush="#99bbe8" BorderThickness="1,1,1,1">
            <Border.Background>
                <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                    <GradientStop Color="#dae6f4" Offset="0"/>
                    <GradientStop Color="#cfdeef" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid Height="28" Background="#CFDDF0">
                <Border CornerRadius="3" Height="24" BorderBrush="#8db2e3" Margin="8,0,0,0" BorderThickness="1,1,1,0" HorizontalAlignment="Left">
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                            <GradientStop Color="#ffffff" Offset="0"/>
                            <GradientStop Color="#deecfd" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <TextBlock Margin="3" VerticalAlignment="Top" x:Name="rightTitle">人员维护</TextBlock>
                </Border>
            </Grid>
        </Border>
        <Grid Margin="5" Grid.Row="1" >
            <Grid.RowDefinitions>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80" ></ColumnDefinition>
                <ColumnDefinition ></ColumnDefinition>
                <ColumnDefinition Width="80" ></ColumnDefinition>
                <ColumnDefinition ></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource EditPageItemTitleTextBlock}">姓名：</TextBlock>
            <TextBox x:Name="EmployeeNameTextBox" Grid.Row="0" Grid.Column="1" Text="{Binding Path=EmployeeName, Mode=TwoWay}"  Margin="3" FontSize="12"></TextBox>

            <TextBlock Grid.Row="0" Grid.Column="2" Style="{StaticResource EditPageItemTitleTextBlock}">年龄：</TextBlock>
            <TextBox Grid.Row="0" Grid.Column="3" Text="{Binding Path=EmployeeAge, Mode=TwoWay}"  Margin="3" FontSize="12"></TextBox>

            <TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource EditPageItemTitleTextBlock}">出生日期：</TextBlock>
            <sdk:DatePicker x:Name="BirthdayDatePicker" Text="{Binding Path=Birthday, Mode=TwoWay}" Grid.Column="1"  Grid.Row="1" Grid.RowSpan="2" Height="23" HorizontalAlignment="Left" Margin="3"  VerticalAlignment="Top" Width="120" SelectedDateFormat="Long" />

            <TextBlock Grid.Row="1" Grid.Column="2" Style="{StaticResource EditPageItemTitleTextBlock}">民族：</TextBlock>
            <ComboBox x:Name="NationComboBox" Grid.Column="3" SelectedValue="{Binding Path=Nation, Mode=TwoWay}"  Grid.Row="1" Grid.RowSpan="2" Height="23" HorizontalAlignment="Left" Margin="3"  VerticalAlignment="Top" Width="120" >

            </ComboBox>
        </Grid>


        <Button x:Name="SaveButton" Content="保存"  Width="75" Height="23" HorizontalAlignment="Right" Margin="0,0,88,8" Grid.Row="1" Click="SaveButton_Click" />
        <Button x:Name="CancelButton" Content="取消"  Width="75" Height="23" HorizontalAlignment="Right" Margin="0,0,8,8" Grid.Row="1" />

    </Grid>
</navigation:Page>
